package com.xiaoju.uemc.tinyid.server;

import com.xiaoju.uemc.tinyid.server.service.TinyIdService;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

/**
 * 初始化新的bizType
 *
 * @author horizon
 */
@RunWith(SpringRunner.class)
@SpringBootTest
public class ServerNewBizType {

    @Autowired
    private TinyIdService tinyIdService;

    @Test
    public void initNewBizType() {
        String bizType = "hello-world";
        String token = "0f673adf80504e2eaa552f5d791b644c";
        String remark = "hello-world测试";
        int beginId = 1;
        int step = 1000;
        int delta = 2;
        int remainder = 1;
        tinyIdService.initBizType(bizType, token, remark, beginId, step, delta, remainder);
    }
}
